﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._211217
{
    /// <summary>
    ///  按日期删除事件提醒
    /// </summary>
    public class InputDeleteMemoAlert: InputDeleteMemo
    {       
        /// <summary>
        ///  提醒日期 格式：【yyyy-MM-dd】
        /// </summary>
        [Required(ErrorMessage = "提醒日期必传！")]
        public string date { get; set; }
    }
    /// <summary>
    ///  删除事件
    /// </summary>
    public class InputDeleteMemo
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
        /// <summary>
        ///  事件id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入事件ID")]
        public int memoID { get; set; }
    }
    /// <summary>
    ///  删除事件类型
    /// </summary>
    public class InputMemoTypeID
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
        /// <summary>
        ///  事件类型ID
        /// </summary>
        [Required]
        public int memoTypeID { get; set; }
    }
}